package io.renren.modules.paper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author Yang
 * @Date 2019/9/4 19:32
 */
@Data
@TableName(value = "paper")
public class Paper {
    /**
     * 试卷id
     */
    @TableId(value = "paper_id", type = IdType.AUTO)
    private Integer paperId;

    /**
     * 试卷名称
     */
    @TableField(value = "paper_name")
    private String paperName;

    /**
     * 试卷创建时间
     */
    @TableField(value = "paper_create_time")
    private Date paperCreateTime;

    /**
     * 考试时长，单位秒
     */
    @TableField(value = "paper_duration")
    private Integer paperDuration;

    /**
     * 试卷难度
     */
    @TableField(value = "paper_difficulty")
    private Integer paperDifficulty;

    /**
     * 考试注意事项
     */
    @TableField(value = "paper_attention")
    private String paperAttention;

    /**
     * 组卷机制，1为随机，2为固定
     */
    @TableField(value = "paper_type")
    private Integer paperType;

    /**
     * 单选题分配分数
     */
    @TableField(value = "single_score")
    private Integer singleScore;

    /**
     * 多选题分配分数
     */
    @TableField(value = "multiple_score")
    private Integer multipleScore;

    /**
     * 判断题分配分数
     */
    @TableField(value = "judge_score")
    private Integer judgeScore;

    /**
     * 填空题分配分数
     */
    @TableField(value = "fill_score")
    private Integer fillScore;

    /**
     * 试卷所属编程语言
     */
    @TableField(value = "lang_id")
    private Integer langId;

    /**
     * 已参加人数
     */
    @TableField(value = "participate_num")
    private Integer participateNum;
}